/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aso.upna.p2pmessages;

import java.io.Serializable;

/**
 *
 * @author triki
 */
public class FailMessage implements Serializable {

    private final String message;
    private final int code;

    public FailMessage(String msg,int cod)
    {
        message = new String(msg);
        code = cod;
    }

    public String getMessage()
    {
        return message;
    }

    public int getCode()
    {
        return code;
    }
}
